//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
      list1:[
       {name:"前端开发",
         conttent:[
           {type:"web前端"},
           {type:"JavaScript"},
           {type:"HTML5"},
           {type:"Flash开发"}
         ]
      } ,
        {name:'后端开发',
        conttent:[
          {type:"Java"},
          {type:"PHP"},
          {type:"Node.js"},
          {type:".NET"},
          {type:"C"},
          {type:"C++"},
          {type:"VB"},
          {type:"Python"},
          {type:"Ruby"},
          {type:"Golang"}
        ]
      },
        {name:'移动开发',
        conttent:[
          {type:"ios"},
          {type:"Android"},
          {type:"小程序开发"},
          {type:"WP"}
        ]
      }, 
      {name:"测试",
      conttent:[
        {type:"测试工程师"},
        {type:"自动化测试"},
        {type:"移动端测试"},
        {type:"硬件测试"},
        {type:"软件测试"},
        {type:"测试开发"},
        {type:"游戏测试"},
        {type:"性能测试"}
      ]
   } ,
     {name:'设计',
     conttent:[
       {type:"网页设计师"},
       {type:"视觉设计师"},
       {type:"APP设计师"},
       {type:"UI设计师"},
       {type:"广告设计师"},
       {type:"动画设计师"},
       {type:"平面设计师"},
       {type:"3D设计师"},
       {type:"多媒体设计师"},
       {type:"原画师"},
       {type:"游戏角色"},
       {type:"游戏动作"},
       {type:"人像修图师"},
       {type:"包装设计"}
     ]
   },
     {name:'运营',
     conttent:[
       {type:"产品运营"},
       {type:"数据运营"},
       {type:"内容运营"},
       {type:"商家运营"},
       {type:"新媒体运营"},
       {type:"电商运营"},
       {type:"网站运营"},
       {type:"网络推广"},
       {type:"文案策划"},
       {type:"网站编辑"},
       {type:"运营主管"},
       {type:"运营助理/专员"}
     ]
   }, 
   {name:"市场",
   conttent:[
     {type:"市场营销"},
     {type:"市场策划"},
     {type:"市场推广"},
     {type:"市场顾问"},
     {type:"商务渠道"},
     {type:"商业数据分析"},
     {type:"活动策划"},
     {type:"APP推广"},
   ]
} ,
  {name:'财务',
  conttent:[
    {type:"会计"},
    {type:"出纳"},
    {type:"财务顾问"},
    {type:"财务经理"},
    {type:"税务"},
    {type:"审计"},
    {type:"风控"},
    {type:"CFO"},
    {type:"财务总监"},
    {type:"财务主管"}
  ]
},
  {name:'销售',
  conttent:[
    {type:"销售专员"},
    {type:"销售经理"},
    {type:"客户代表"},
    {type:"代理商销售"},
    {type:"电话销售"},
    {type:"销售顾问"},
    {type:"商品经理"},
    {type:"客户经理"}
  ]
}, 
{name:"互联网金融",
conttent:[
  {type:"金融产品经理"},
  {type:"分析师"},
  {type:"投资经理"},
  {type:"理财顾问"},
  {type:"交易员"},
  {type:"审计"},
  {type:"合规稽查"},
  {type:"清算"}
]
} ,
{name:'医疗健康',
conttent:[
 {type:"医生"},
 {type:"医学影像"},
 {type:"药剂师"},
 {type:"康复治疗师"},
 {type:"放射科医师"},
 {type:"检验科医师"},
 {type:"其他医生职位"}
]
},
{name:'建筑',
conttent:[
 {type:"施工员"},
 {type:"材料员"},
 {type:"BIM工程师"},
 {type:"消防工程师"},
 {type:"建筑工程师"},
 {type:"室内设计"},
 {type:"园林设计"},
 {type:"城市规划设计"},
 {type:"工程监理"},
 {type:"工程造价"},
 {type:"施工现场管理"},
 {type:"景观设计"},
 {type:"预结算"}
]
}, 
{name:'酒店/餐饮',
conttent:[
 {type:"礼仪迎宾"},
 {type:"前厅经理"},
 {type:"客房经理"},
 {type:"收银员"},
 {type:"前台"},
 {type:"后厨"},
 {type:"厨师长"},
 {type:"西点师"},
 {type:"服务员"},
 {type:"传菜员"},
 {type:"咖啡师"},
 {type:"送餐员"},
 {type:"领班"},
 {type:"茶艺师"},
 {type:"餐饮学徒"},
 {type:"洗碗工"}
]
}, 
{name:'美容保健',
conttent:[
 {type:"彩妆顾问"},
 {type:"纹绣师"},
 {type:"美体师"},
 {type:"美发学徒"},
 {type:"美容店长"},
 {type:"足疗师"},
 {type:"按摩师"},
 {type:"发型师"},
 {type:"美甲师"},
 {type:"化妆师"},
 {type:"美容师/顾问"}
]
}, 
{name:'机械设计/制造',
conttent:[
 {type:"机械工程师"},
 {type:"机械制图"},
 {type:"机械维修/保养"},
 {type:"结构工程师"},
 {type:"材料工程师"},
 {type:"机电工程师"},
 {type:"CNC/数控"},
 {type:"模具工程师"},
 {type:"焊接工程师"},
 {type:"注塑工程师"},
 {type:"铸造工程师"}
]
}, 
      
      ],
      types:"",
      indexs:0

  },
  aaa(e){
     console.log(e)
     this.setData({
       'types':this.data.list1[e.target.dataset.index].conttent,
       'indexs':e.target.dataset.index
     })
  }, 
  //事件处理函数
  
  onLoad: function () {
    var that=this
    that.setData({
      'types':that.data.list1[0].conttent,
    })
  }
})
